//
//  YWPhotoBrowserAnimator.h
//  videoTest3
//
//  Created by jun peng on 2022/6/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class YWPhotoBrowserAnimator;
@protocol YWPhotoBrowserAnimatorPresentedDelegate <NSObject>

@optional

//这只是NSObject、开始位置结束为止imageView都不知的、要外界返回给我

//传个indexPath给你、你直接返回开始位置给我
-(CGRect)startRect:(NSIndexPath *)contentBeginIndexPath;
//传个indexPath给你、你直接返回结束位置给我
-(CGRect)endRect:(NSIndexPath *)contentBeginIndexPath;

//你直接返回个imageView给我
-(UIImageView*)imageView:(NSIndexPath *)contentBeginIndexPath;

@end

@protocol YWPhotoBrowserAnimatorDismissDelegate <NSObject>

@optional
//拿到你正在看的图片
-(UIImageView*)imageViewForDimissView;

//从浏览器获取你正在看到的indexPath
-(NSIndexPath *)indexPathForDismissView;

//返回去一开始的位置用上面代理的startRect

@end


@interface YWPhotoBrowserAnimator : NSObject

@property(nonatomic,strong)NSIndexPath *indexPath;

@property (weak, nonatomic) id <YWPhotoBrowserAnimatorPresentedDelegate>presentedDelegate;
@property (weak, nonatomic) id <YWPhotoBrowserAnimatorDismissDelegate>dismissDelegate;


@end

NS_ASSUME_NONNULL_END
